//
//  DSOrder.m
//  DSJY
//
//  Created by lx on 17/3/1.
//  Copyright © 2017年 dsjy. All rights reserved.
//  订单

#import "DSOrder.h"
#import "DSOrderInfo.h"

@implementation DSOrder

//购买时长
- (NSString *)yearString
{
    if (_yearString == nil) {
        if ([self.year isEqualToString:DSOrderInfoYearShort]) {
            _yearString = @"大思英语网络课程0.5年学时";
        }else if([self.year isEqualToString:DSOrderInfoYearLong]){
            _yearString = @"大思英语网络课程1年学时";
        }else{
            _yearString = @"";
        }
    }
    return _yearString;
}

- (NSString *)channelString
{
    if (_channelString == nil) {
        if ([self.channel isEqualToString:DSOrderInfoChannelValue]) {
            _channelString = DSOrderInfoChannelStringValue;
        }else{
            _channelString = @"";
        }
    }
    return _channelString;
}

- (NSString *)statusString
{
    if (_statusString == nil) {
        if ([self.status isEqualToString:@"1"]) {
            _statusString = @"已支付";
        }else{
            _statusString = @"未支付";
        }
    }
    return _statusString;
}

@end
